<?php
namespace Home\Controller;
use Think\Controller;
class BaseController extends Controller{
    //初始化函数
    public function _initialize() {
       //把栏目信息存储到session中
        if(!session("?users")){
             $this->redirect('Login/index');
        }else{
        	//登陆权限
    /*       $user_id = $_SESSION['users']['user_id'];
           $list = D('NavUser')->alias('a')->join("left join ki_nav as b on a.nav_id = b.nav_id")->where("a.user_id = $user_id")->order('sort asc')->select();
           $this->assign('nav',$list);*/
        }
    }
    
    
}
?>
